View = class("View")

---

function View:initialize()

	self.rootWindow = false
end

---

function View:registerButton(descriptor)

		local buttonID = #gView.buttonDescriptors + 1
		gView.buttonDescriptors[buttonID] = { view = self, descriptor = descriptor}
		return buttonID
end 

---

function View:update()
end

---

function View:onButtonClick(buttonDescriptor)

	error("non handled button click")
end